package com.elite.xml.service.impl;

import com.elite.xml.entity.User;
import com.elite.xml.mapper.UserMapper;
import com.elite.xml.service.AUserService;
import com.elite.xml.service.BUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("bUserServiceImpl")
public class BUserServiceImpl implements BUserService {
	@Autowired
	private AUserService aUserService;

	@Autowired
	private UserMapper userMapper;

	public UserMapper getUserMapper() {
		return userMapper;
	}
	public void setUserMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
	}

	@Transactional(transactionManager = "dataSourceTransactionManager2")
	@Override
	public User queryOne(Long id) {
		return userMapper.queryOne(id);
	}

	public AUserService getaUserService() {
		return aUserService;
	}

	public void setaUserService(AUserService aUserService) {
		this.aUserService = aUserService;
	}
}
